module.exports = function(app) {
    var routes = require('./routes');

    for (var i in routes) {
        app.use('/' + routes[i], require('./' + routes[i]));

    }

    return function(req, res, next) {

        next();
    }
}
